// string::rbegin/rend
#include <iostream>
#include <string>
using namespace std;
int main()
{
    string str("now step live...");
    string::reverse_iterator rit = str.rbegin();
    for (; rit != str.rend(); ++rit)
        cout << *rit;
    cout << endl;

    return 0;
}